/*
 * @Description: 
 * @Date: 2024-05-31 11:24:16
 * @LastEditTime: 2024-05-31 17:15:36
 */
import request from '@/config/axios'

export interface PopularizeLawVO {
                    id?: number
                    title?: string
                    content?: string
                    videoUrl?: string
                    type?: string
                    introduction?: string
}

// 查询普法宣传列表
export const getPopularizeLawPage = async (params) => {
  return await request.get({ url: '/pro/popularize-law/page', params })
}

// 查询普法宣传详情
export const getPopularizeLaw = async (id: number) => {
  return await request.get({ url: '/pro/popularize-law/get?id=' + id })
}

// 新增普法宣传
export const createPopularizeLaw = async (data: PopularizeLawVO) => {
  return await request.post({ url: '/pro/popularize-law/create', data })
}

// 修改普法宣传
export const updatePopularizeLaw = async (data: PopularizeLawVO) => {
  return await request.put({ url: '/pro/popularize-law/update', data })
}

// 删除普法宣传
export const deletePopularizeLaw = async (id: number) => {
  return await request.delete({ url: '/pro/popularize-law/delete?id=' + id })
}

// 导出普法宣传 Excel
export const exportPopularizeLawApi = async (params) => {
  return await request.download({ url: '/pro/popularize-law/export-excel', params })
}
